package com.mvetc.service.impl;

import java.util.Map;

import com.mvetc.dao.ManagerDao;
import com.mvetc.dao.impl.ManagerDaoImpl;
import com.mvetc.entity.Manager;
import com.mvetc.service.ManagerService;

public class ManagerServiceImpl implements ManagerService {
	
	private ManagerDao managerDao = new ManagerDaoImpl();

	@Override
	public Map<String, String> login(String managerId, String managerPassword) {
		return managerDao.findManagerByIdAndPassword(managerId, managerPassword);
	}

	@Override
	public int modifyPasswordById(Manager manager) {
		
		return managerDao.updatePasswordById(manager);
	}
}
